package com.dailyyoga.res;

import com.net.tool.BasicDownload.DownloadListner;
import com.net.tool.DownloadPlugTooles;

import android.app.Dialog;
import android.content.Context;

public class InstallPlugsManager {

	Context mContext;
	String mPlugPkg;
	DownloadPlugTooles mDownloadPlugTooles;
	Dialog mDialog;
	DownloadListner mListner;
	InstallImp mInstallImp;

	static InstallPlugsManager mPlugsManager;

	public synchronized static InstallPlugsManager getIntance(Context context) {
		if (mPlugsManager == null) {
			mPlugsManager = new InstallPlugsManager(context);
		}
		mPlugsManager.mContext = context;

		return mPlugsManager;

	}

	public InstallPlugsManager(Context context) {
		mContext = context;

	}

	public void install(String plugId) {
		// if (YogaResManager.getInstance(mContext).getDataPath().equals("ZIP"))
		// {
		// mInstallImp = new ZipInstall(mContext, plugId);
		// } else {
		// mInstallImp = new ApkInstall(mContext, plugId);
		// }
		// mInstallImp.install("", plugId);
	}

	public void unInstall(String plugId) {
		// if (YogaResManager.getInstance(mContext).getDataPath().equals("ZIP"))
		// {
		// mInstallImp = new ZipInstall(mContext, plugId);
		// } else {
		// mInstallImp = new ApkInstall(mContext, plugId);
		// }
		// mInstallImp.unInstall(plugId);
	}

	public void release() {

	}

}
